// import React, { Component, Suspense, lazy } from "react";
// import { withRouter, NavLink, Switch, Redirect, Route } from "react-router-dom";
// import Home from "./views/Home";
// // const Home = lazy(() => import("./views/Home"));

// class App extends Component {
//   render() {
//     return (
//       // <Suspense fallback={<div>Loading...</div>}>
//       <Switch>
//         <Route exact path="/" component={Home} />
//       </Switch>
//       // </Suspense>
//     );
//   }
// }

// export default App;
// import React, { Component, Suspense, lazy } from "react";
import { BrowserRouter as Router } from "react-router-dom";
// import { routes } from "./routes";
// import Home from "./views/Index";
// const Home = lazy(() => import("./views/Home"));
import { links, routes } from "./routes";

function App() {
  return (
    <div className="App">
      <Router>
        {/* <Suspense fallback={<div>Loading...</div>}>// </Suspense> */}
        <div>{links}</div>
        <div>{routes}</div>
      </Router>
    </div>
  );
}
export default App;
